#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main()
{
	char arr1[100], arr2[100];
	printf("please enter arr1:\n");
	//scanf("%s", arr1);
	gets(arr1);
	printf("please enter arr2'\n");
	//scanf("%s", arr2);
	gets(arr2);
	int n1 = strlen(arr1);
	int n2 = strlen(arr2);
	int n = n1;
	for (int i = 0; i < n1; i++)
	{
		for (int j = 0; j < n2; j++)
		{
			if (arr1[i] == arr2[j])
			{
				for (int a = 0; a < n1 - i; a++)
				{
					arr1[i] = arr1[i + 1];
				}
				n--;
			}
		}
	}
	printf(arr1);
	printf("\n");
	printf(arr2);
	return 0;
}